﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;
using NakedObjects;

namespace RTC.Modelo.Entidades
{
    [DisplayName("Comentarios")]
    public class Comentario : Entidad
    {

        #region Atributos

        [Hidden]
        public virtual int Id { get; set; }

        [Disabled, MemberOrder(10), DisplayName("Fecha")]
        public virtual DateTime Fecha { get; set; }

        [MemberOrder(20), DisplayName("Comentarios"), MultiLine]
        public virtual String Comentarios { get; set; }

        [Hidden, Disabled, DisplayName("Fecha Modificacion")]
        public virtual DateTime ModifiedDate { get; set; }

        #endregion


        public string IconName()
        {
            return "speech.png";
        }

        #region Ciclo de vida del objeto
        public void Created()
        {
            this.Fecha = DateTime.Now;
        }
        #endregion

        [Hidden]
        protected override void SetModifiedDate()
        {
            ModifiedDate = DateTime.Now;
        }
    }
}
